package org.yonggan.web.util;

import java.lang.reflect.Field;

/**
 * Created by Administrator on 2018/1/4.
 */
public class App {
    public static void main(String[] args) throws IllegalAccessException, InstantiationException {

        ClassGrade[] classGrade = ClassGrade.class.getEnumConstants();
        for (ClassGrade cg :classGrade) {
            Class<? extends ClassGrade> aClass = cg.getClass();
            Field[] fields = aClass.getFields();
            for (Field f: fields) {
                System.out.println(f.getName());
            }

        }
    }
}
